package com.huaxin.utils;


import com.huaxin.model.User;

public class UserHolder
{

	public static final String _USER_SESSION_KEY = "_USER_SESSION_KEY";


	private static ThreadLocal<User> tl = new ThreadLocal<>();


	public static User getUser() {
		return tl.get();
	}

	public static void clear() {
		tl.remove();
	}

	public static void setUser(User user) {
		tl.set(user);
	}



}
